package com.chengxiaoxiao.domain;

import java.io.Serializable;
import java.util.Date;

public class Returns implements Serializable {
    private long id;
    private Date subTime;
    private long userId;
    private long bookId;
    private int borrowId;

    private Users user;
    private Books book;

    public Returns() {
    }

    public Returns(long id, Date subTime, long userId, long bookId, int borrowId, Users user, Books book) {
        this.id = id;
        this.subTime = subTime;
        this.userId = userId;
        this.bookId = bookId;
        this.borrowId = borrowId;
        this.user = user;
        this.book = book;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Date getSubTime() {
        return subTime;
    }

    public void setSubTime(Date subTime) {
        this.subTime = subTime;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getBookId() {
        return bookId;
    }

    public void setBookId(long bookId) {
        this.bookId = bookId;
    }

    public Users getUser() {
        return user;
    }

    public void setUser(Users user) {
        this.user = user;
    }

    public Books getBook() {
        return book;
    }

    public void setBook(Books book) {
        this.book = book;
    }

    public int getBorrowId() {
        return borrowId;
    }

    public void setBorrowId(int borrowId) {
        this.borrowId = borrowId;
    }
}
